<template>
  <view class="about-container">
    <!-- 头部 -->
    <view class="about-header">
     
      <text class="slogan">时刻保护您的出行安全</text>
    </view>

    <!-- 主体内容 -->
    <view class="content-card">
      <image src="/static/desc.png" class="content-image" mode="aspectFit" />
      <text class="content-text">智途安行检测系统，让每一米道路皆可感知。通过云端协同与智能预警，提前阻断90%道路风险，守护亿万家庭平安出行。</text>
    </view>

    <!-- 时间轴 -->
    <view class="timeline-card">
      <text class="section-title">发展历程</text>
      <view class="timeline">
        <view class="timeline-item" v-for="(item, index) in timelineData" :key="index">
          <view class="timeline-marker">
            <view class="marker-circle"></view>
            <view class="marker-line" v-if="index !== timelineData.length - 1"></view>
          </view>
          <view class="timeline-content">
            <text class="timeline-year">{{ item.year }}</text>
            <text class="timeline-event">{{ item.event }}</text>
          </view>
        </view>
      </view>
    </view>

    <!-- 底部装饰 -->
    <view class="footer-decoration">
      <view class="deco-line"></view>
      <text class="footer-text">Welcome you</text>
    </view>
  </view>
</template>

<script setup>
const timelineData = [
  { year: "2025", event: " 正式发布" },

];
</script>

<style scoped>
.about-container {
  padding: 30rpx;
  background: #f8f9fa;
  min-height: 100vh;
}

/* 头部样式 */
.about-header {
  text-align: center;
  margin-bottom: 50rpx;
}

.slogan {
  font-size: 28rpx;
  color: #666;
  letter-spacing: 2rpx;
}

/* 内容卡片 */
.content-card {
  background: #fff;
  border-radius: 16rpx;
  padding: 40rpx;
  margin-bottom: 40rpx;
  box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
}

.content-image {
  width: 100%;
  height: 300rpx;
  margin-bottom: 30rpx;
  border-radius: 8rpx;
}

.content-text {
  font-size: 28rpx;
  color: #4d4d4d;
  line-height: 1.8;
  text-align: justify;
}

/* 时间轴样式 */
.timeline-card {
  background: #fff;
  border-radius: 16rpx;
  padding: 40rpx;
  box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
}

.section-title {
  font-size: 36rpx;
  font-weight: 500;
  color: #1a1a1a;
  display: block;
  margin-bottom: 40rpx;
  padding-left: 20rpx;
  border-left: 8rpx solid #07c160;
}

.timeline {
  position: relative;
  padding-left: 40rpx;
}

.timeline-item {
  position: relative;
  padding-bottom: 50rpx;
  display: flex;
}

.timeline-marker {
  position: relative;
  width: 40rpx;
}

.marker-circle {
  width: 24rpx;
  height: 24rpx;
  background: #07c160;
  border-radius: 50%;
  border: 4rpx solid rgba(7,193,96,0.2);
}

.marker-line {
  position: absolute;
  left: 10rpx;
  top: 24rpx;
  width: 2rpx;
  height: 100%;
  background: #e0e0e0;
}

.timeline-content {
  flex: 1;
  padding-left: 30rpx;
}

.timeline-year {
  display: block;
  font-size: 32rpx;
  color: #07c160;
  font-weight: 500;
  margin-bottom: 12rpx;
}

.timeline-event {
  display: block;
  font-size: 28rpx;
  color: #666;
  line-height: 1.6;
}

/* 底部装饰 */
.footer-decoration {
  margin-top: 60rpx;
  text-align: center;
}

.deco-line {
  width: 100rpx;
  height: 2rpx;
  background: #ddd;
  margin: 0 auto 20rpx;
}

.footer-text {
  font-size: 24rpx;
  color: #999;
  letter-spacing: 2rpx;
}
</style>